#/bin/bash

path_conf=`pwd`/nginx_termux.conf

if [ -n "$(pidof nginx)" ]; then
    nginx -s reload
else
    nginx -c $path_conf
fi

# show the nginx netstat
netstat -tnlp | grep nginx
